Skip to content

Conversation

jbrockmendel
Copy link
Member

Same as #40149 but with the perf-improving edits to frame.py reverted



# ---------------------------------------------------------------------


def _prep_ndarray(values, copy: bool = True) -> np.ndarray:
if isinstance(values, TimedeltaArray):
# On older numpy, np.asarray below apparently does not call __array__,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this still true? (e.g. we are now min 1.17)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, ill take a look

@jreback jreback added Internals Related to non-user accessible pandas implementation Refactor Internal refactoring of code labels Apr 22, 2021
@jreback jreback added this to the 1.3 milestone Apr 22, 2021
@jreback jreback merged commit 6b6d8fd into pandas-dev:master Apr 22, 2021
@jreback
Copy link
Contributor

jreback commented Apr 22, 2021

just a question for followup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internals Related to non-user accessible pandas implementation Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants